#include "Armure.h"

Armure::Armure()
{
}

Armure::Armure(int b)
{
	switch (b){
		case 1:
		creerArmureStorm();
		break;

		case 2:
		creerArmureLegere();
		break;

		case 3 :
		creerArmureLourde();
		break;

		case 4:
		creerTunique();
		break;
	}
}

inline void Armure::creerArmureStorm()
{
	nom_="Armure Stormtrooper";
	defense_=10;
	resistance_=4;
}

inline void Armure::creerArmureLegere()
{
	nom_="Armure legere";
	defense_=2;
	resistance_=8;
}

inline void Armure::creerArmureLourde()
{
	nom_="Armure lourde";
	defense_=4;
	resistance_=20;
}

inline void Armure::creerTunique()
{
	nom_="Tunique de Jedi";
	defense_=0;
	resistance_=0;
}
